package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class User extends BaseDomain{
    public static final Integer GENDER_MAN=0;//男
    public static final Integer GENDER_WOMAN=1;//女
    public static final Integer GENDER_SECRET=-1;//保密
    private String email;

    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;

    private Integer gender;

    private String coverImgUrl;

    private String sign;

    //给常量性别设计属性
    public String getGenderName(){
        String msg="保密";
        if(this.gender==GENDER_MAN){
            msg="男";
        }else if(this.gender==GENDER_WOMAN){
            msg="女";
        }
        return msg;
    }



}